package com.iflytek.exam.service;

import com.iflytek.exam.domain.QuestionExam;

import java.util.List;
import java.util.Map;

public interface QuestionExamService {
    /**
     * 查询试题和试卷中间
     *
     * @param examId 试题和试卷中间主键
     * @return 试题和试卷中间
     */
    QuestionExam selectQuestionExamByExamId(Long examId);


    /**
     * 查询试卷中的试题
     *
     * @param examId
     * @param userId
     * @return
     */
    Map<String,Object> selectPaperQuestionById(Long examId, Long userId);

    QuestionExam selectPaperQuestionByIdAndType(QuestionExam questionExam);

    int insertQuestionExam(QuestionExam questionExam);

    Boolean deleteQuestionExamByExamId(Long examId);

    List<QuestionExam> selectPaperQuestionByUserId(Long userId);

    List<QuestionExam> selectPaperQuestionForAll();

}
